package Exam;

import java.util.ArrayList;
import java.util.List;

/**
 * @author げっしょく
 * @date 2021/7/25
 */
public class Test1 {
    public static void main(String[] args) {
        List<String> list = new ArrayList<>();
        list.add("aaa");
        list.add("bbb");
        list.add("ccc");
        list.add("ddd");
        list.add("eee");
        list.add(0,"sb");
        System.out.println(list);
        System.out.println(list.remove(2));
        list.set(2, "hhh");
        System.out.println(list);
        System.out.println(list.get(4));
    }
}
